package com.suns.param;

import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.*;
import java.util.List;

@Getter
@Setter
public class TestVo {
    @NotBlank
    private String msg;

    //自定义校验项，校验范围，校验提示信息
    @NotNull(message = "id不可以为空哦！")
    @Max(value = 10, message = "id不能大于10")
    @Min(value = 0, message = "id至少大于0")
    private Integer id;

    /*@NotEmpty*/
    private List<String> list;
}
